﻿using LinqToDB;
using LinqToDB.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleTerminal.Common
{
    public class SqliteDBContext: DataConnection
    {
        public SqliteDBContext():this(false)
        {
            
        }
        public SqliteDBContext(bool Password = false):base("SQLite", "DataSource=" + AppDomain.CurrentDomain.BaseDirectory + "\\data.db" + ";")
        {
           

           // InitDataContext();
        }
        public SqliteDBContext(string providerName, string configuration) : base(providerName, configuration)
        {
           // InitDataContext();
        }
        //partial void InitDataContext();
        public ITable<Keyword> SysInfo { get { return this.GetTable<Keyword>(); } }
    }
}
